/*=========================================================================

  Program:   ORFEO Toolbox
  Language:  C++
  Date:      $Date$
  Version:   $Revision$


  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
  See OTBCopyright.txt for details.


     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#include "otbZoomableImageWidget.h"

int otbZoomableImageWidgetNew(int argc, char * argv[])
{
  try
    {
    typedef float                               PixelType;
    typedef otb::ZoomableImageWidget<PixelType> WidgetType;

    WidgetType::Pointer widget = WidgetType::New();
    }

  catch (itk::ExceptionObject& err)
    {
    std::cout << "Exception itk::ExceptionObject levee !" << std::endl;
    std::cout << err << std::endl;
    return EXIT_FAILURE;
    }
  catch (...)
    {
    std::cout << "Exception levee inconnue !" << std::endl;
    return EXIT_FAILURE;
    }

  return EXIT_SUCCESS;
}
